<template>
  <div id="userLayout" :class="['user-layout-wrapper', device]">

    <div class="container">
      <div class="bg-main">
        <div class="yuan1"></div>
        <div class="yuan2"></div>
        <div class="tixing1"></div>
        <div class="tixing2"></div>
        <div class="tixing3"></div>

        <div class="changtia"></div>
        <img class="denglutu" src="@/assets/denglu.svg" width="885">
      </div>

      <div class="top">
        <div class="header">
          <a href="/">
            <img src="../../assets/degnlutitle.png" class="logo" alt="logo">

          </a>
          <span class="title">生产管理系统</span>
        </div>

        <!--&lt;!&ndash;        <div class="desc">&ndash;&gt;-->
        <!--&lt;!&ndash;          Jeecg Boot 是中国最具影响力的 企业级 低代码平台&ndash;&gt;-->
        <!--&lt;!&ndash;        </div>&ndash;&gt;-->
      </div>

      <route-view></route-view>

      <div class="footer">
        <div class="links">
          <a href="" target="_blank">帮助</a>
          <a href="" target="_blank">隐私</a>
          <a href="" target="_blank">条款</a>
        </div>
        <div class="copyright">
          Copyright &copy; 2020 <a href="https://www.XXX.cn/" target="_blank"></a> 山东艺之匠出品
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import RouteView from "@/components/layouts/RouteView"
import { mixinDevice } from '@/utils/mixin.js'

export default {
  name: "UserLayout",
  components: { RouteView },
  mixins: [mixinDevice],
  data () {
    return {}
  },
  mounted () {
    document.body.classList.add('userLayout')

  },
  beforeDestroy () {
    document.body.classList.remove('userLayout')
  },
}
</script>

<style lang="less" scoped>
#userLayout.user-layout-wrapper {
  height: 100%;

  &.mobile {
    .container {

      .main {
        max-width: 368px;
        width: 98%;
      }
    }
  }

  .container {
    width: 100%;
    min-height: 100%;
    //background: #e6e8f1 url(~@/assets/background.svg) no-repeat 50%;
    background-size: 100%;
    //padding: 110px 0 144px;
    position: relative;

    a {
      text-decoration: none;
    }

    .top {
      text-align: center;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-left: 150px; /*margin-left/top负值根据width和height来决定，取值为一半;*/
      margin-top: -250px;
      .header {
        height: 44px;
        line-height: 44px;
        vertical-align: bottom;
        vi
        .badge {
          position: absolute;
          display: inline-block;
          line-height: 1;
          vertical-align: middle;
          margin-left: -12px;
          margin-top: -10px;
          opacity: 0.8;
        }

        .logo {
          height: 60px;
          vertical-align: top;
          margin-right: 16px;
          border-style: none;
        }

      }

      .title {
        font-size: 50px;
        color: rgb(23, 28, 95);
        font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        font-weight: 600;
        //position: relative;
      }
      .desc {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.45);
        margin-top: 12px;
        margin-bottom: 40px;
      }
    }

    .main {
      min-width: 260px;
      width: 368px;
      //margin: 0 auto;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-left: 150px; /*margin-left/top负值根据width和height来决定，取值为一半;*/
      margin-top: -100px;
    }

    .footer {
      position: absolute;
      width: 100%;
      bottom: 0;
      padding: 0 16px;
      margin: 48px 0 24px;
      text-align: center;

      .links {
        margin-bottom: 8px;
        font-size: 14px;
        a {
          color: rgba(0, 0, 0, 0.45);
          transition: all 0.3s;
          &:not(:last-child) {
            margin-right: 40px;
          }
        }
      }
      .copyright {
        color: rgba(0, 0, 0, 0.45);
        font-size: 14px;
      }
    }
  }
}
.tixing1{
  position: absolute;
  width: 700px;
  height: 700px;
  clip-path: polygon(0 700px,0 0,500px 0,700px 700px);
  background: linear-gradient(30deg,#8E4AFC, #171C5F 45% );

  border-radius: 35px 0 0 35px;
  //border-bottom: 700px solid #171C5F;
  //border-top: 0px solid transparent;
  //border-left: 0px solid transparent;
  //border-right: 200px solid transparent;

}
.tixing2{
  position: absolute;
  z-index: -1;
  left: 12px;
  width: 700px;
  border-radius: 35px 0 0 35px;
  border-bottom: 700px solid #DBDBF8;
  border-top: 0px solid transparent;
  border-left: 0px solid transparent;
  border-right: 200px solid transparent;
}
.tixing3{
  position: absolute;
  z-index: -2;
  left: 12px;
  width: 700px;
  border-radius: 35px 0 0 35px;
  border-bottom: 700px solid #ffffff;
  border-top: 0px solid transparent;
  border-left: 0px solid transparent;
  border-right: 200px solid transparent;
  filter: drop-shadow( 0 0 20px #7575DD )

}
.changtia{
  position: absolute;
  width: 1200px;
  top:24px;
  z-index: -3;
  height: 652px;
  background: #ffffff;
  border-radius: 35px;
  box-shadow: 1px 2px 30px 20px #DADBE8;

}
.denglutu{
  position: absolute;
  top:180px;
  left: -170px;
  z-index: 1;
}
.bg-main{
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -600px; /*margin-left/top负值根据width和height来决定，取值为一半;*/
  margin-top: -350px;

}
.yuan1{
  z-index: -4;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: linear-gradient(120deg,#DBDBF8,#FAFAFE,#FFFFFF);
  position: absolute;
  top:-150px;
  left: 800px;
}
.yuan2{
  z-index: -4;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: linear-gradient(75deg,#DBDBF8,#FAFAFE,#FFFFFF);
  position: absolute;
  top:500px;
  left: -150px;
}
</style>